/*
 * FileManager.cpp
 *
 *  Created on: Mar 24, 2011
 *      Author: Craig Wilson
 */

#include "../inc/FileManager.h"

	bool SaveGame(char *fileName,MoveHistory history){

		try{
			ofstream file;
			file.open(fileName);
			while(!history.isEmpty()){
				Move current(history.undoMove());
				file << "TODO";	//Yes I am overloading the operator<< for Moves
			}
			file.close();
		}
		catch(...){
			cout<<"Unhandled Saving Exception"<< endl;
		}
	}

	MoveHistory* LoadGame(char *fileName){
		ifstream file;
		file.open(fileName);
		string line;
		while(file){
			getline(file,line);
		}
	}
